#include"mystdio.h"
#include"mystring.h"
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
int main()
{
    Myfile* f=MyFopen("./text.txt","a");
    if(f==NULL)
    {
        exit(1);
    }

    int cnt=5;
     char* str=(char*)"hello world";
    while(cnt--)
    {
        MyFwrite(f,str,strlen(str));
        MyFFlush(f);
       printf("buffer:%s\n",f->outbuffer);
       sleep(1);
    }


    const char* s="hello world!";
    printf("strlen:%d\n",my_strlen(s));

    MyFclose(f);




    return 0;
}
